<form name="form_admin" method="post" action="<?php echo formAction('updatestatus')?>">	
<table width="100%" border="0" cellpadding="0" cellspacing="1" id="tblsort">
    <tr class="headtb">
		<td width="1%"><?php echo inputCheckAll()?></td>
		<td width="15%">Name Customer</td>
		<td width="15%">Email</td>
		<td width="15%" >Date Post</td>
        <td width="5%" ><?echo _STATUS?></td>
   		 <td width="10%"><?echo _ACTIONS?></td>
	</tr>
	<?php
	foreach($result_list as $i=>$result)
	{
	?>
		<tr>
			<td>
			    <?php echo inputCheck($result['iId'])?>
                <input type="hidden" name="listid[]" value="<?php echo $result['iId']?>" />
			</td>
            <td><a href="#Info" onclick="showhide('FeedBackInfo_<?php echo $result["iId"]?>');">
                <?php echo $result['cName']?>
                </a>
            </td>
			<td style="padding-left:10px" nowrap="nowrap">
    			<a href="#Info" onclick="showhide('FeedBackInfo_<?php echo $result["iId"]?>');">
    				<?php echo $result['email']?>
    			</a>
    		</td>
            <td align="center">
    			<?php echo  $result["dDate"]?>
    		</td>
    		<td align="center">
    			<select name="liststatus[]">
    			<?php echo liststatus($result["iStatus"]) ?>
    			</select>
    		</td>
    		<td align="center">
    		      <?php echo linkAction('delete','delete','id='.$result['iId'])?>
    		</td>		          
		</tr>
		<tr nodrag="true" nodrop="true" id="FeedBackInfo_<?php echo $result["iId"]?>" style="display: none;">
					<td colspan="6">
						<fieldset style="border:1px solid #aaaaaa">
						<legend><b> Personal Details</b></legend>
						<table width="100%"  cellpadding="0" cellspacing="1" >
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Country</b></td>
								<td style="padding-left:10px;"><?php echo $result["country"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Email</b></td>
								<td style="padding-left:10px;"><?php echo $result["email"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Address</b></td>
								<td style="padding-left:10px;"><?php echo $result["cAddress"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Fax</b></td>
								<td style="padding-left:10px;"><?php echo $result["cFax"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Telephone</b></td>
								<td style="padding-left:10px;"><?php echo $result["phone"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Number of Adults:</b></td>
								<td style="padding-left:10px;">
									<?php echo $result["adults"] ?>&nbsp;&nbsp;&nbsp;
									Ages: <?php echo $result["adults_ages"] ?>
								</td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Number of Children:</b></td>
								<td style="padding-left:10px;">
									<?php echo $result["children"] ?>&nbsp;&nbsp;&nbsp;
									Ages: <?php echo $result["children_ages"] ?>
								</td>
							</tr>
							
						</table>
						</fieldset>
					<? /*------------------------------------------Travel period-------------------------------------------*/?>	
						<fieldset style="border:1px solid #aaaaaa">
						<legend><b>Tripplanner Details</b></legend>
						<table width="100%"  cellpadding="0" cellspacing="1" >
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Arrival:</b></td>
								<td style="padding-left:10px;">
									<?php echo $result["arrival_date"] ?>&nbsp;&nbsp;&nbsp;
									To: <?php echo $result["arrival_port"] ?>
								</td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Departure:</b></td>
								<td style="padding-left:10px;">
									<?php echo $result["departure_date"] ?>
									From: <?php echo $result["departure_port"] ?>
								</td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Duration:</b></td>
								<td style="padding-left:10px;"><?php echo $result["duration"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Destinations:</b></td>
								<td style="padding-left:10px;">
									<?php echo $result["destinations"] ?>
								</td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Activities:</b></td>
								<td style="padding-left:10px;">
									<?php echo $result["activities"] ?>
								</td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Transportation:</b></td>
								<td style="padding-left:10px;"><?php echo $result["transportation"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Accommodation and Meal:</b></td>
								<td style="padding-left:10px;"><?php echo $result["accommodation_food"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Other comments:</b></td>
								<td style="padding-left:10px;"><?php echo $result["questions_comments"] ?></td>
							</tr>
							<tr bgcolor="#fafafa">
								<td width="20%" style="padding-left:10px;"><b>Find us:</b></td>
								<td style="padding-left:10px;"><?php echo $result["findus"] ?></td>
							</tr>
						</table>
						</fieldset>
						
					</td>
		</tr>
   <?
   }
   if(count($result_list)==0)
   {
    ?>
        <tr>
            <td colspan="6" style="color: red;" align="center">Not found result</td>
        </tr>
    <?
   }
   ?>
</table>
</form>